package cn.psvmc.cxzapi.mapper.customer;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.customer.TCustomerCard;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 客户会员卡表 Mapper 接口
 *
 * @Author auto
 * @Date 2025-01-04
 */
public interface TCustomerCardMapper extends MyBaseMapper<TCustomerCard> {

    //保存会员卡信息
    int save(@Param("card") TCustomerCard card);

    //客户会员卡列表
    List<Map> listCard(@Param("openId") String openId);

    //客户会员卡数量
    int countCard(@Param("openId") String openId);
}
